;
(function () {
  'use strict';
  angular.module('controllers.alarmDataAnalysis.multidimensionalAnalysis', [])
    .controller('mdAnalysisCtrl', mdAnalysisCtrl);

  function mdAnalysisCtrl($scope, mdAnalysisService, CoreService, $rootScope) {
    $scope.pageInfo = mdAnalysisService;
    var spans = ['/byProvince', '/byBusiness'];
    $scope.selectedIndex = CoreService.navgit(spans);
    $rootScope.$on('$stateChangeSuccess', function (event, state) {
      $scope.selectedIndex = spans.indexOf(state.url);
    });
  }

  mdAnalysisCtrl.$inject = ['$scope', 'mdAnalysisService', 'CoreService', '$rootScope'];
})();